package com.koyi0000.mq.rabbit.serviceIml;

import com.koyi0000.mq.BO.User;
import com.koyi0000.mq.dao.TestSqlMapper;
import com.koyi0000.mq.rabbit.BO.User;
import com.koyi0000.mq.rabbit.dao.TestSqlMapper;
import com.koyi0000.mq.rabbit.service.TestSqlService;
import com.koyi0000.mq.rabbit.trans.UserTrans;
import com.koyi0000.mq.service.TestSqlService;
import com.koyi0000.mq.trans.UserTrans;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author koyi0000
 * Description  Date 2020/9/15 15:57
 **/
@Service
public class TestSqlServiceImpl implements TestSqlService {

    @Autowired
    private TestSqlMapper testSqlMapper;

    @Override
    public void testSql(User user) {
        testSqlMapper.insert(UserTrans.toDO(user));
    }
}
